import request from '@/utils/request'

export  function addWallPaperClassify(data){
  return request({
    url: '/classify/add',
    method: 'post',
    data
  })
}


export  function deleteWallPaperClassify(id){
  return request({
    url: `/classify/delete?id=${id}`,
    method: 'delete'
  })
}

export  function ListWallPaperClassify(pageSize,currentPage){
  return request({
    url: `/classify/list/page?pageSize=${pageSize}&currentPage=${currentPage}`,
    method: 'get'
  })
}

export  function editWallPaperClassify(data){
  return request({
    url: '/classify/edit',
    method: 'post',
    data
  })
}
export  function getWallPaperClassifyById(id){
  return request({
    url: `/classify/get?id=${id}`,
    method: 'get'
  })
}

export  function getClassifyNames(){
  return request({
    url: '/classify/getClassifyNames',
    method: 'get'
  })
}
